package com.allenkerr.vo;

import java.util.List;

/**
 * Created by 小柯(Allen Kerr) on 17.6.25 21:59.
 */
public class CountryCityData {

    private int code;
    private String msg;
    private List<Country> countries;
    private List<City> cities;

    /**
     * 国家
     */
    public static class Country {
        private int id;
        private String cn_name;
        private String en_name;
        private Boolean is_deleted;
        private List<Integer> city_ids;//城市Id

        @Override
        public String toString() {
            return "Country{" +
                    "id=" + id +
                    ", cn_name='" + cn_name + '\'' +
                    ", en_name='" + en_name + '\'' +
                    ", is_deleted=" + is_deleted +
                    ", city_ids=" + city_ids +
                    '}';
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCn_name() {
            return cn_name;
        }

        public void setCn_name(String cn_name) {
            this.cn_name = cn_name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }

        public Boolean getIs_deleted() {
            return is_deleted;
        }

        public void setIs_deleted(Boolean is_deleted) {
            this.is_deleted = is_deleted;
        }

        public List<Integer> getCity_ids() {
            return city_ids;
        }

        public void setCity_ids(List<Integer> city_ids) {
            this.city_ids = city_ids;
        }
    }

    /**
     * 城市
     */
    public static class City {
        private int id;
        private String cn_name;
        private String en_name;
        private Boolean is_deleted;
        private Integer country_id;//所属国家Id

        public Integer getCountry_id() {
            return country_id;
        }

        public void setCountry_id(Integer country_id) {
            this.country_id = country_id;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCn_name() {
            return cn_name;
        }

        public void setCn_name(String cn_name) {
            this.cn_name = cn_name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }

        public Boolean getIs_deleted() {
            return is_deleted;
        }

        public void setIs_deleted(Boolean is_deleted) {
            this.is_deleted = is_deleted;
        }
    }
}
